home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 40
/
Vol 40.iso
/
games
/
water_ba.swf
/
scripts
/
frame_2
/
DoAction_2.as
next >
Wrap
Text File
|
2007-03-20
|
2KB
|
61 lines
_root.registeredgame = true;
_root.echoice = "girl_temp";
_root._quality = "LOW";
_root.currentlevel = 1;
menu.currentup = false;
sign.removeMovieClip();
crowint.clearInterval();
_root.clearInterval(gametime);
gametime.clearInterval();
stop();
movieclip.prototype.loader = function()
{
if(!this.init)
{
this.total = int(_root.getBytesTotal() / 1000);
_root.part = 1;
this.init = true;
}
this.info = "Total 969kb Loaded " + _root.percent;
this.count = g++;
this.download = int(_root.getBytesLoaded() / 1000);
this.bytesleft = _root.getBytesTotal() - _root.getBytesLoaded() + " bytes";
_root.percent = int(_root.getBytesLoaded() / _root.getBytesTotal() * 100) + " %";
_root.percent2 = int(_root.getBytesLoaded() / _root.getBytesTotal() * 100);
this.frame = int(_root.getBytesLoaded() / _root.getBytesTotal() * 100);
this.total = int(_root.getBytesTotal() / 1000);
this.loader.gotoAndPlay(_root.percent2);
this.interval = function()
{
_root.play();
};
if(this.total <= this.download)
{
_root.gotoAndStop("logos");
delete _root.onEnterFrame;
delete loadlogo.onEnterFrame;
}
else
{
_root.stop();
}
};
_root.onEnterFrame = function()
{
barz.loader();
};
movieclip.prototype.introwobbler = function(tempo, dim, ddim, adder, adder2)
{
this.originy = adder2;
this._y = this.originy + adder + dim + ddim * Math.sin(this.i * 3.141592653589793 / 180);
this.i += tempo;
if(this.i >= 360)
{
this.i = 0;
}
};
loadlogo.onEnterFrame = function()
{
this.introwobbler(10,3,5,40,20);
};